package b.acct.impl

import akka.Done
import b.acct.api.{CC账户, CC转账Request}
import com.lightbend.lagom.scaladsl.persistence.PersistentEntity

/**
  * 贲国称 于 2016/12/9 创建。
  */
trait T账户Command
trait T账户CommandDone extends T账户Command with PersistentEntity.ReplyType[Done]
case class CC开户Command(v账号: String) extends T账户CommandDone
case class CC转出TryCommand(v事务ID: Long, v请求: CC转账Request) extends T账户CommandDone
case class CC转入TryCommand(v事务ID: Long, v请求: CC转账Request) extends T账户CommandDone
case class CC改余额ConfirmCommand(v事务ID: Long) extends T账户CommandDone
case class CC改余额CancelCommand(v事务ID: Long) extends T账户CommandDone
case class CC账户GetCommand() extends T账户Command with PersistentEntity.ReplyType[Option[CC账户]]
